package com.youan.serve.controller.swagger;

import com.youan.pangu.base.bean.ElementTree;
import com.youan.pangu.security.bean.LoginInfor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.youan.serve.dao.domain.Org;

/**
* <p>
    *  swagger接口描述文件
    * </p>
*
* @author auto_code
* @since 2020-03-04
*/
@Api(tags = "管理接口")
public interface OrgControllerSwagger {

    @ApiOperation(value = "新增一个Org实例")
    Org addOrg(Org org, LoginInfor loginInfor);

    @ApiOperation(value = "修改一个Org实例")
    Org updateOrg(Org org, LoginInfor loginInfor);

    @ApiOperation(value = "获取所有Org实例")
    List<ElementTree> selectAllOrg() throws Exception;

    @ApiOperation(value = "根据主键删除一个Org实例")
    void deleteOrgByOrgId(String orgId) throws Exception;

    @ApiOperation(value = "根据主键获取Org实例")
    Org selectOrgByOrgId(String orgId);

}

